<template>
  <div id="app">
    <Nav></Nav>
    <!-- <YerBlue v-for="(blue, index) in blues" :blue="blue" :key="index" @listen="show"></YerBlue> -->
    <router-view></router-view>
    <router-view name="root"></router-view>
  </div>
</template>

<script>
import Nav from '@/components/common/nav'
import YerBlue from '@/components/yerBlue'
import KnowledgePoint from '@/components/KnowledgePoint'
export default {
  name: 'App',
  components: {
    Nav,
    YerBlue,
    KnowledgePoint
  },
  data () {
    return {
      visible: false,
      blues: ['john lennon', 'paul maccartney'],
      activeNames: ['1']
    }
  },
  methods: {
    handleChange (val) {
      console.log(val)
    },
    controlVisible: function () {
      this.visible = !this.visible
    },
    show: function (msg) {
      console.log(msg)
    },
    warn: function () {
      alert(555)
    }
  }
}
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
* {
  margin: 0;
  padding: 0;
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>
